package com.kuaixueit.crm.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kuaixueit.crm.pojo.CRole;

public interface CRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CRole record);

    int insertSelective(CRole record);

    CRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CRole record);

    int updateByPrimaryKey(CRole record);

	List<CRole> findPage();
	 
	List<HashMap> findFunctionByRoleId(@Param("roleId")Integer roleId);
	
	void deleteFunctionByRoid(@Param("roleId")Integer roleId);
	
	void insertFunnctionsByRoid(@Param("roleId")Integer roleId,@Param("fids")Integer[] fid);
}